package com.asset.dispoal.caseType.service.commom;

import com.asset.dispoal.caseType.domain.db.mapper.BsCaseTypeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import tech.mhuang.pacebox.core.ddd.BaseCommand;
import tech.mhuang.pacebox.springboot.protocol.Result;

/**
 * @author qr
 * @date 2022/3/10$
 */
@Component
public class BsCaseTypeDeleteCommand implements BaseCommand<String, Result> {

    @Autowired
    BsCaseTypeMapper bsCaseTypeMapper;

    @Override
    public Result execute(String id) {
        bsCaseTypeMapper.delete(id);
        return Result.ok();
    }
}
